package com.mimiwang.chat.entity;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Talk {



  private long id;

  @NotNull
  private long sender;
  @NotNull
  private long receiver;

  private long receiverType;

  private String text;

  private long type;

  private String textUrl;

  private long read;

  @JSONField(format = "yyyy-MM-dd hh:mm:ss")
  private Timestamp createTime;

  @JSONField(serialize = false)
  private long delete;



}
